home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
A-Monthly Disks
/
(c)aaf.d64
/
zs-sales record
(
.txt
)
< prev
Wrap
Commodore BASIC
|
2007-02-04
|
13KB
|
482 lines
1 REM L C ZITNIK 11/20/84
2 A$="ABCDEFGHIJKLMNOPQ":A$=A$+A$+A$+A$+A$:A$=A$+A$+A$:GOTO10000
3 DATA160,2,177,45,153,137,0,200,192,6
4 DATA208,246,162,1,32,198,255
5 DATA32,228,255,201,13,240,11,164,142,145
6 DATA140,200,132,142,196,139,208,238,76,204,255
7 GET#8,ZL$:IFZL$=""THEN7
8 GET#8, Z$:IF Z$=""THEN8
9 IF Z$=CHR$(13)THENRETURN
10 ZL$=ZL$+Z$:GOTO8
13 PRINT CHR$(147):C=2:R=2:PRINT" "+HH$+H1$:RETURN
14 PRINT:PRINT:PRINT" .TYPE 1ST 1-9 LETTERS OF A FILE ITEM."
18 PRINT:PRINT" .OR ADD[146] TO ADD A NEW SALES ITEM.
20 [153]:[153]" .OR ENDWAIT TO EXIT TO MENU.
22 RETURN
40 POKE211,C: POKE214,R: PRINT CHR$(145) CHR$(17) ;: RETURN
50 REM
52 IF ABS(D0)>999999999 THEN O$="******* ": GOTO 90
54 O$=MID$(STR$(INT(D0)),2)
56 IF F$="0" THEN GOTO 82
58 IF F$="1" THEN GOTO 72
60 IF LEN(O$)=1 THEN O$=".0"+O$: GOTO 85
62 IF LEN(O$)=2 THEN O$="."+O$: GOTO 85
64 O$=LEFT$(O$,LEN(O$)-2)+ "." +RIGHT$(O$,2)
66 IF LEN(O$) > 6 THEN O$=LEFT$(O$,LEN(O$)-6)+"," + RIGHT$(O$,6)
68 IF LEN(O$)> 10 THEN O$=LEFT$(O$,LEN(O$)-10)+","+ RIGHT$(O$,10)
70 GOTO 85
72 IF LEN(O$)=1 THEN O$="." + O$: GOTO 86
74 O$=LEFT$(O$,LEN(O$)-1)+"." + RIGHT$(O$,1)
76 IF LEN(O$) > 5 THEN O$=LEFT$(O$,LEN(O$)-5)+"," + RIGHT$(O$,5)
78 IF LEN(O$) > 9 THEN O$=LEFT$(O$,LEN(O$)-9)+"," + RIGHT$(O$,9)
82 IF LEN(O$) > 3 THEN O$=LEFT$(O$,LEN(O$)-3)+"," + RIGHT$(O$,3)
84 IF LEN(O$) > 7 THEN O$=LEFT$(O$,LEN(O$)-7)+"," + RIGHT$(O$,7)
85 IF F$="$" THEN O$="$"+O$
86 FOR H=1 TO (L%-LEN(O$)): O$="[160]"+O$: NEXT
87 IF D0 >=0 THEN O$=O$+" "
88 IF D0<0 THEN O$=O$+"-"
90 RETURN
100 REM
110 GOSUB 40
120 PRINT CHR$(18);: FOR I=1TOLN%: PRINT " ";: NEXT
130 PRINT CHR$(146) ;
140 GOSUB 40
150 DA$="": F%=0
160 FOR I=1 TO LN%
170 F%=F%+1
180 GET D$: IF D$="" THEN 180
182 IF D$=CHR$(20)THEN272
190 IF D$=CHR$(95) THEN I=LN%: GOTO 220
200 IF D$=CHR$(13) THEN I=LN%: GOTO 220
210 PRINT D$;: DA$=DA$+D$
220 NEXT
230 IF D$=CHR$(95) THEN GOTO 110
232 IF F%=LN% THEN IF D$=CHR$(13) THEN DA$=DA$+" "
240 IF F%=LN% THEN 260
250 FOR I=F% TO LN%: DA$=DA$+" ": NEXT
260 GOSUB 40
270 PRINT DA$;: RETURN
272 IF I=1THEN180
274 POKE214,R:POKE211,C+I-2:PRINTCHR$(145)CHR$(17)CHR$(18)" "CHR$(146);
276 POKE214,R:POKE211,C+I-2:PRINTCHR$(145)CHR$(17);:I=I-1
278 LE=LEN(DA$):DA$=LEFT$(DA$,LE-1):D$="":GOTO180
300 REM
302 M$="NON-NUMERIC DATA": SN=0
303 IF F$="D" THEN LN%=6
310 GOSUB 40
320 PRINT CHR$(18) ;: FOR I=1 TO LN%: PRINT " ";: NEXT
330 PRINT CHR$(146) " ";
340 GOSUB 40
350 DA$=""
360 FOR I=1 TO LN%
380 GET D$: IF D$="" THEN 380
382 IF D$=CHR$(20)THEN510
390 IF D$=CHR$(95) THEN I=LN%: GOTO 430
400 IF D$=CHR$(13) THEN I=LN%: GOTO 430
405 IFD$=CHR$(45)ANDI<>1THENGOTO550
406 IFD$=CHR$(45)THENSN=1: GOTO420
410 IFD$<"0"ORD$>"9"THENGOTO550
420 PRINT D$;: DA$=DA$+D$
430 NEXT
440 IF D$=CHR$(95) THEN GOTO 310
445 IFSN=1THEND0=D0*-1
450 D0=VAL(DA$)
451 O$=DA$
455 IFF$="N"THEN FORH=1TO(LN%-LEN(O$)): O$=" "+O$: NEXT
460 IF F$="0" OR F$="1" OR F$="2" ORF$="$" THEN GOSUB 50: GOTO 500
500 GOSUB 40: PRINT O$;: RETURN
502 PRINTCHR$(145)CHR$(17)CHR$(18)CHR$(146);:GOTO380
510 IF I=1THEN380
512 POKE214,R:POKE211,C+I-2:PRINTCHR$(145)CHR$(17)CHR$(18)" "CHR$(146);
514 POKE214,R:POKE211,C+I-2:PRINTCHR$(145)CHR$(17);:I=I-1
516 LE=LEN(DA$):DA$=LEFT$(DA$,LE-1):D$="":GOTO380
550 IFRT$="A"THEN300
555 SW=0
560 IFD$=CHR$(136)THENRETURN
562 IFD$=CHR$(135)THENRETURN
564 IFD$=CHR$(133)THENRETURN
570 IFD$=CHR$(137)THENRETURN
600 GOTO300
800 IFLEN(O$)<8THENO$=" "+O$:GOTO800
801 RETURN
810 IFLEN(O$)<10THENO$=" "+O$:GOTO810
811 RETURN
1000 H1$=" ... SEARCH SCREEN
1001 [141]13:[141]14:C[178]12:R[178]12:[141]40:[153]"_ TYPE IN SALES ITEM."
1010 C[178]2:LN%[178]9:[141]100
1015 SL[178][195](DA$):[139][201](DA$,1)[178]" "[175]SL[179][177]1[167]DA$[178][200](DA$,SL[171]1):[137]1015
1020 [139]DA$[178]"ADD"[167]1600
1025 [139]DA$[178]"END"[167]2000
1030 [129]I[178]1[164]RC:[139]DA$[179][178][200](C$(I),SL)[167] H[178]I:H%[178]I:I[178]RC
1040 [130]I
1041 H1$[178]" ... POSTING SCREEN":[141]13
1042 [143]
1043 [141]12000
1051 R[178]4:C[178]1:[141]40
1052 [153]"ENTER QUANTITY, OR PRESS...."
1053 [153]" F1 TO CHANGE THIS SALES ITEM."
1054 [153]" F2 TO DISPLAY THIS ITEM FOR
1055 PRINT" POSSIBLE DELETION.
1056 [153]" F5 TO RETURN TO SEARCH SCREEN.
1057 PRINT" F7 TO ADVANCE TO NEXT SALES ITEM.
1058 R[178]14:C[178]5:[141]40:[153] [200](C$(H),20)
1060 R[178]17:C[178]7:[141]40:[153]"QUANTITY PRICE AMOUNT"
1070 R[178]18:C[178]18:[141]40
1080 PR$[178][202](C$(H),23,4):PR[178]([197](PR$))[173]100
1090 [153][200](PR$,2);".";[201](PR$,2)
1100 [139][195](C$(H))[177]96[167]1400
1120 C[178]9:R[178]18:LN%[178]4:F$[178]"0":RT$[178]"Q":[141] 300
1121 [139]D$[178][199](136)[175]H%[178]200[167]1000
1122 [139]D$[178][199](136)[167]H[178]H[170]1:H%[178]H%[170]1:C[178]0:R[178]20:[141]40:[153]BS$:[153]BS$:C[178]5
1123 [139]D$[178][199](136)[167][137]1058
1124 [139]D$[178][199](135)[167]1000
1125 [139]D$[178][199](133)[167]2500
1126 [139]D$[178][199](137)[167]2300
1130 [139][195](DA$)[179]4[167]DA$[178]" "[170]DA$:[137]1130
1140 QU$[178]DA$
1220 [143] AMOUNT
1221 [141]12000:R[178]4:C[178]2:[141]40
1222 [153]"ENTER AMOUNT (NUMBERS ONLY. NO PERIOD)
1223 PRINT" OR ......... FOR CALCULATED AMOUNT,
1224 [153]" JUST PRESS RETURN.
1230 C=30:R=18:LN%=6:F$="2":RT$="A":GOSUB300
1231 IFLEN(DA$)>0THEN1240
1232 QU=VAL(QU$):PR=VAL(PR$):D0=QU*PR
1233 F$="2":L%=6:GOSUB50:DA$=STR$(D0)
1240 IFLEN(DA$)<7THENDA$=" "+DA$:GOTO1240
1350 C$(H%)=LEFT$(C$(H%),96)+QU$+RIGHT$(DA$,6)
1355 GOSUB810
1360 C=27:R=18:GOSUB40:PRINTO$+" "
1365 FORI=1TO400:NEXTI:REM DELAY
1370 GOTO1000
1400 C=0:R=20:GOSUB40:PRINT"PREVIOUS"
1410 PRINT"POSTING: ";MID$(C$(H),97,4);" ";MID$(C$(H),23,2);".";
1420 PRINTMID$(C$(H),25,2);" ";
1430 PRINTMID$(C$(H),101,4);".";MID$(C$(H),105,2)+" "
1440 R=18:GOTO1120
1600 REM ADD ROUTINE
1610 H1$=" ... ADD SCREEN":GOSUB13:C=1:R=8:GOSUB40:PRINT" NAME"
1620 R=10:GOSUB40:PRINT" CATEGORY"
1630 R=12:GOSUB40:PRINT" "+U$
1640 R=14:GOSUB40:PRINT" PRICE"
1645 C=2:R=21:GOSUB40
1646 PRINT"PRESS RETURN WITHOUT TYPING A NAME,
1647 [153]" TO RETURN TO THE SEARCH SCREEN.
1650 C=16:R=8:LN%=20:GOSUB100
1660 AD$=DA$:IFDA$=LEFT$(BL$,20)THEN1000
1670 IFLEN(AD$)<20THENAD$=AD$+" ":GOTO1670
1675 C=2:FORR=21TO22:GOSUB40:PRINTLEFT$(BL$,37):NEXT:C=16
1680 R=10:LN%=1:GOSUB100
1700 AD$=AD$+DA$
1705 IFU$=" "THENAD$=AD$+" ":GOTO1720
1710 R=12:GOSUB100:AD$=AD$+DA$
1720 R=14:LN%=4:F$="2":GOSUB300
1730 DA=ABS(VAL(DA$)):DA$=STR$(DA)
1740 IFLEN(DA$)<4THENDA$=" "+DA$:GOTO1740
1750 AD$=AD$+RIGHT$(DA$,4)+BL$
1760 C=3:R=17:GOSUB40:PRINT"TYPE 1 TO ADD THE ABOVE RECORD"
1780 PRINT" ..OR 9 TO CANCEL THIS ADD..."
1790 C=1:R=17:LN%=1:GOSUB100
1820 DA%=VAL(DA$)
1830 IFDA%=1THEN1850
1835 IFDA%=9THEN1600
1840 GOTO1790
1850 REM PUT ADD ON FILE
1860 IFRC=UTHEN1000
1870 RC=RC+1:I%=0
1880 FORI=1TORC-1
1890 IF LEFT$(AD$,20)<LEFT$(C$(I),20)THENI%=I:I=RC-1
1900 NEXT I:IFI%=0THEN1940
1910 FORI=RCTOI%+1 STEP-1:C$(I)=C$(I-1):NEXTI
1920 C$(I%)=AD$
1930 GOTO 1600
1940 C$(RC)=AD$:GOTO1600
2000 REM MENU
2010 PRINTCHR$(147):TQ=0:TA=0
2020 FORI=1TORC:IFLEN(C$(I))<97THEN2040
2030 TQ=TQ+VAL(MID$(C$(I),97,4)):TA=TA+VAL(MID$(C$(I),101,6))
2040 NEXTI:TQ$=STR$(TQ):TA$=STR$(TA)
2050 H1$=" ... MENU SCREEN
2051 [141]13:R[178]6:[141]40:[153]"TOTAL POSTING AMOUNT .... $ ";
2060 [153][200](TA$,[195](TA$)[171]2);".";[201](TA$,2)
2070 R[178] 9:[141]40:[153]"1. RETURN TO SEARCH SCREEN.
2080 R=11:GOSUB40:PRINT"2. PRINT SALES REPORT........."
2090 PRINT" ADD POSTINGS TO THE FILE..."
2100 PRINT" AND WRITE OUT THE NEW FILE.
2102 R[178]15:[141]40:[153]"3. DISPLAY SALES BY ITEM."
2104 R[178]17:[141]40:[153]"4. EXIT."
2110 R[178]20:C[178]5:[141]40:[153]"SELECT 1 THRU 4."
2120 C[178]2:LN%[178]1:[141]100
2130 [139]DA$[178]"1"[167]1000
2140 [139]DA$[178]"2"[167]2160
2150 [139]DA$[178]"3"[167]3000
2152 [139]DA$[178]"4"[167]19999
2154 [137]2120
2160 [141]4092:T7%[178]0:[129]I[178]1[164]RC
2165 [139][195](C$(I))[179]97[167]2240
2166 [137]4200
2170 T$[178][196]([197]([202](C$(I),87,4))[170][197]([202](C$(I),97,4)))
2180 [139][195](T$)[179]4[167]T$[178]" "[170]T$:[137]2180
2190 T$[178][201](T$,4)
2200 W$[178][196]([197]([202](C$(I),91,6))[170][197]([202](C$(I),101,6)))
2210 [139][195](W$)[179]6[167]W$[178]" "[170]W$:[137]2210
2220 W$[178][201](W$,6)
2230 C$(I)[178][200](C$(I),86)[170]T$[170]W$
2240 [130]I:[137]4400
2250 [143] W/O FILE
2251 [159]15,8,15:[152]15,"SCRATCH0:POST/SALES":[152]15,"VALIDATE":[160]15
2254 [159]2,8,2,"POST/SALES,S,W"
2255 RC$[178][196](RC)
2256 [139][195](RC$)[179]3[167]RC$[178]" "[170]RC$:[137]2256
2257 RC$[178][201](RC$,3)
2260 [152]2,RC$[170]"YR"[170]"MO"
2270 [129]I[178]1[164]RC:[152]2,C$(I):[130]I
2271 [160]2:[153][199](147):[153]""[170]"INSERT THE BACKUP DISKETTE ..."
2272 [153]" ... AND PRESS ANY KEY TO CONTINUE."
2273 [161]Q7$:[139]Q7$[178]""[167]2273
2276 [159]2,8,2,"@0:POST/SALES,S,W"
2277 [152]2,RC$[170]"YR"[170]"MO"
2278 [129]I[178]1[164]RC:[152]2,C$(I):[130]I
2279 [160]2
2280 [137]2000
2300 [143] DELETE
2310 H1$[178]" ... DELETE":[141]13:R[178]4:C[178]6:[141]40:[153]"... DELETE ROUTINE ..."
2320 C[178]5:R[178]8:[141]40:[153]"NAME ";[200](C$(H%),20)
2330 [153]" CATEGORY ";[202](C$(H%),21,1)
2340 [153]" "[170]U$[170]" ";[202](C$(H%),22,1)
2350 [153]" PRICE ";[202](C$(H%),23,2);".";[202](C$(H%),25,2)
2355 L8[178]0
2360 [129]I[178]1985[164]1990:[153]" ";I;" ";[202](C$(H%),27[170]L8,4);" ";
2370 [153][202](C$(H%),31[170]L8,4);".";[202](C$(H%),35[170]L8,2)
2380 L8[178]L8[170]10:[130]I
2390 [153]" ";"MTD ";" ";[202](C$(H%),87,4);" ";
2400 [153][202](C$(H%),91,4);".";[202](C$(H%),95,2)
2410 C[178]2:R[178]20:[141]40:[153]"PRESS D TO DELETE THIS ENTIRE ITEM !
2420 PRINT" OR R TO RETURN TO SEARCH SCREEN.
2430 C[178]38:R[178]21:LN%[178]1:[141]100
2440 [139] DA$[179][177]"D"[167]1000
2450 [129]I[178]H%[170]1[164]RC:C$(I[171]1)[178]C$(I):[130]:RC[178]RC[171]1
2460 [137]1000
2500 [143] CHANGE
2510 H1$[178]" ... CHANGE":[141]13:R[178]4:C[178]6:[141]40:[153]"... CHANGE ROUTINE ..."
2520 C[178]2:R[178]8:[141]40:[153]"1. NAME ";[200](C$(H%),20)
2530 [153]" 2. CATEGORY ";[202](C$(H%),21,1)
2540 [153]" 3. "[170]U$[170]" ";[202](C$(H%),22,1)
2550 [153]" 4. PRICE ";[202](C$(H%),23,2);".";[202](C$(H%),25,2)
2560 R[178]14:[141]40:[153]"ENTER NUMBER OF FIELD"
2570 [153]" TO BE CHANGED (1-4) OR 5 TO EXIT."
2580 C[178]2:R[178]16:LN%[178]1:[141]100
2590 [139]DA$[179]"1"[176]DA$[177]"5"[167]2580
2600 DA%[178][197](DA$):[139]DA%[178]5[167]1000
2602 [139]DA%[178]1[167]AD%[178]20:[137]2620
2604 [139]DA%[178]4[167]AD%[178]4:[137]2622
2606 AD%[178]1
2620 C[178]15:R[178]16:LN%[178]AD%:[141]100:[137]2630
2622 C[178]15:R[178]16:LN%[178]4:F$[178]"2":RT$[178]"A":[141]300
2630 [139][195](DA$)[179]AD%[167]DA$[178]" "[170]DA$:[137]2630
2640 [145]DA%[137]2650,2660,2670,2680
2650 AD$[178]DA$[170][201](C$(H%),[195](C$(H%))[171]20):[137]2700
2660 C$(H%)[178][200](C$(H%),20)[170]DA$[170][201](C$(H%),[195](C$(H%))[171]21):[137]2500
2670 C$(H%)[178][200](C$(H%),21)[170]DA$[170][201](C$(H%),[195](C$(H%))[171]22):[137]2500
2680 C$(H%)[178][200](C$(H%),22)[170]DA$[170][201](C$(H%),[195](C$(H%))[171]26):[137]2500
2700 [129]I[178]H%[170]1[164]RC:C$(I[171]1)[178]C$(I):[130]:RC[178]RC[171]1
2720 RC[178]RC[170]1:I%[178]0
2730 [129]I[178]1[164]RC[171]1
2740 [139] [200](AD$,20)[179][200](C$(I),20)[167]I%[178]I:I[178]RC[171]1
2750 [130] I:[139]I%[178]0[167]2790
2760 [129]I[178]RC[164]I%[170]1 [169][171]1:C$(I)[178]C$(I[171]1):[130]I
2770 C$(I%)[178]AD$:H%[178]I%
2780 [137]2500
2790 C$(RC)[178]AD$:H%[178]RC:[137]2500
3000 [143] OPTIONS
3010 H1$[178]" ... DISPLAY OPTIONS
3011 GOSUB13:C=8:R=8:GOSUB40:PRINT".... DISPLAY OPTIONS ...."
3020 C=7:R=11:GOSUB40:PRINT"ENTER (ALL) OR (9)TO EXIT"
3030 PRINT" OR (A-Z) FOR ONE CATEGORY."
3032 C=1:R=11:LN%=3:GOSUB100:O1$=DA$
3034 IFVAL(DA$)= 9 THEN2000
3035 IFDA$="ALL"THEN3038
3036 DA$=LEFT$(DA$,1):O1$=LEFT$(O1$,1)
3037 IFDA$<"A"ORDA$>"Z"THEN3032
3038 C=7:R=15:GOSUB40
3040 PRINT"ENTER YEAR (1985 ETC.) OR (TOT)"
3050 PRINT" FOR TOTAL OR (MTD) OR (POST)."
3060 C=0:R=15:LN%=4:GOSUB100
3070 IFDA$="TOT "THENO%=9:HD$="TOTAL.":GOTO3115
3080 IFDA$="MTD "THENO%=7:HD$="MTD...":GOTO3115
3090 IFDA$="POST"THENO%=8:HD$="POSTED":GOTO3115
3095 HD$=DA$+"."
3100 IFVAL(DA$)<1985ORVAL(DA$)>1990THEN3060
3110 O%=VAL(DA$)-1984
3115 QT =0:AT =0:PL=2
3120 FORI=1TORC
3130 IFO1$="ALL"THEN3150
3135 O1$=LEFT$(O1$,1)
3140 IFMID$(C$(I),21,1)<>O1$THEN3420
3150 REM
3160 IFO%=9THEN3200
3165 IFO%=8ANDLEN(C$(I))<97THEN3420
3170 Q=VAL(MID$(C$(I),(27+(O%-1)*10),4))
3180 A=VAL(MID$(C$(I),(31+(O%-1)*10),6))
3190 GOTO3280
3200 Q =0:A =0
3210 IFLEN(C$(I))<97THEN3240
3220 Q=VAL(MID$(C$(I),97,4))
3230 A=VAL(MID$(C$(I),101,6))
3240 FORJ=1TO7
3250 Q=Q+VAL(MID$(C$(I),(27+(J-1)*10),4))
3260 A=A+VAL(MID$(C$(I),(31+(J-1)*10),6))
3270 NEXTJ
3280 REM SCREEN DISPLAY
3282 IFQ+A=0THEN3420
3285 QT=QT+Q:AT=AT+A
3290 IFPL<>2THEN3324
3295 PRINTCHR$(147);:PRINT" ";HD$;"....SALES"
3300 IFLEN(O1$)<>3THENO1$=O1$+" ":GOTO3300
3310 PRINT" ";O1$;" CATEGORY";
3320 PRINT" QUANTITY AMOUNT"
3324 D0=Q:LN%=5:F$="0":GOSUB50:Q$=O$
3325 IFLEN(Q$)<7THENQ$=" "+Q$:GOTO3325
3326 D0=A:LN%=9:F$="2":GOSUB50:A$=O$
3327 IFLEN(A$)<11THENA$=" "+A$:GOTO3327
3340 R=PL:C=0:GOSUB40:PRINTLEFT$(C$(I),20);" ";Q$;A$
3350 PL=PL+1:IFPL<>23THEN3420
3400 C=0:R=24:GOSUB40:PRINT"PRESS ANY KEY TO CONTINUE";:GETK$:IFK$=""THEN3400
3410 PRINTCHR$(147);:PL=2
3420 NEXTI
3430 C=0:R=23:GOSUB40:PRINT"REPORT TOTAL........";
3440 D0=QT:LN%=5:F$="0":GOSUB50:Q$=O$
3445 IFLEN(Q$)<7THENQ$=" "+Q$:GOTO3445
3450 D0=AT:LN%=9:F$="2":GOSUB50:A$=O$
3455 IFLEN(A$)<11THENA$=" "+A$:GOTO3455
3460 PRINT" ";Q$;A$
3470 PRINT"PRESS ANY KEY TO CONTINUE.";
3480 GETK$:IFK$=""THEN3480
3490 GOTO2000
4000 REM MONTH END ?
4010 H1$=" REPORT & SAVE FILE
4011 [141]13:C[178]0:R[178]10:[141]40:[153]"IS THIS THE END OF THE MONTH ? (Y/N)"
4020 C[178]37:LN%[178]1:[141]100
4030 [139]DA$[178]"N"[167]2250
4040 [139]DA$[178]"Y"[167]4060
4050 [137]4020
4060 C[178]0:R[178]13:[141]40:[153]"WHAT YEAR SHOULD"
4070 [153]" SALES BE POSTED TO ?"
4080 C[178]27:R[178]14:LN%[178]4:[141]100
4090 [139] [197](DA$)[179]1985[176][197](DA$)[177]1990[167] 4080
4091 [141]4092:[137]4100
4092 [153][199](147):[153]""[170]"PLEASE ADVANCE PAPER IN PRINTER ..."
4094 [153]" ... THEN PRESS ANY KEY TO CONTINUE."
4096 [161]L4$:[139]L4$[178]""[167]4096
4097 [142]
4100 O%[178]1991[171][197](DA$):T1[178]0:T2[178]0:T3[178]0:T4[178]0
4102 [159]4,4:[152]4,[200](BL$,24)[170]HH$[170]"- MONTH END"
4104 [152]4,[199](13);:[152]4," TOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTO"
4105 [152]4,[199](13)
4106 [152]4," ....THIS MONTH.... ...YEAR TO DATE..."
4107 [152]4," QUANTITY AMOUNT QUANTITY AMOUNT"
4108 [152]4," TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB( TAB(TAB(TAB(TAB(TAB(TAB( TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB( TAB(TAB(TAB(TAB(TAB(TAB("
4110 [129]I[178]1[164]RC
4112 MQ[178][197]([202](C$(I),87,4))
4114 MA[178][197]([202](C$(I),91,6))
4122 [139] MQ[179][177]0[167]4600
4124 [139] MA[179][177]0[167]4600
4129 [137]4500
4130 Q$[178][196]([197]([202](C$(I),(87[171]O%[172]10),4))[170][197]([202](C$(I),87,4)))
4135 Q$[178][201](Q$,4)
4136 [139][195](Q$)[179]4[167]Q$[178]" "[170]Q$:[137]4136
4140 A$[178][196]([197]([202](C$(I),(91[171]O%[172]10),6))[170][197]([202](C$(I),91,6)))
4142 A$[178][201](A$,6)
4143 [139][195](A$)[179]6[167]A$[178]" "[170]A$:[137]4143
4145 C$(I)[178][200](C$(I),86)[170]" "
4150 C$(I)[178][200](C$(I),86[171]O%[172]10)[170]Q$[170]A$[170][201](C$(I),O%[172]10)
4160 [130]I
4170 MQ[178]T1:MA[178]T2:YQ[178]T3:YA[178]T4:NM$[178]" TOTALS":[141]4618
4180 [160]4
4199 [137]2250
4200 [143] PATCH - REPORTS
4210 [139]T7%[179][177]0[167]4300
4220 T7%[178]1:[159]4,4:TQ[178]0:TA[178]0
4230 [152]4,[200](BL$,20)[170]HH$
4240 [152]4,[199](13)
4250 [152]4," DATE TOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTO"
4260 [152]4,[199](13)
4270 [152]4," DESCRIPTION OF THIS SALE TOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTOTO"
4280 [129]K[178]1[164]2:[152]4,[199](13):[130]K
4290 [152]4," QUANTITY AMOUNT"
4300 [152]4," "[170][200](C$(I),20);
4310 [152]4," ";
4311 F$[178]"0":LN%[178]6:D0[178][197]([202](C$(I),97,4)):[141]50
4312 [141]800
4313 [152]4,O$;
4320 TQ[178]TQ[170][197]([202](C$(I),97,4))
4330 TA[178]TA[170][197]([201](C$(I),6))
4340 D0[178][197]([201](C$(I),6)):F$[178]"2":LN%[178]6:[141]50
4350 [141]810
4360 [152]4," "[170]O$:[137]2170
4400 D0[178]TQ:F$[178]"0":LN%[178]6:[141]50
4405 [139]TQ[178]0[175]TA[178]0[167][160]4:[137]4000
4410 [141]800
4420 [152]4," TOTALS "[170]O$;
4430 D0[178]TA:F$[178]"2":LN%[178]6:[141]50
4440 [141]810
4450 [152]4," "[170]O$
4460 [160]4:[137]4000
4500 YQ[178][197]([202](C$(I),(87[171]O%[172]10),4))
4510 YA[178][197]([202](C$(I),(91[171]O%[172]10),6))
4520 [139] YQ[179][177]0[167]4550
4530 [139] YA[179][177]0[167]4550
4540 [137]4160
4550 H6[178]0:[137]4610
4600 H6[178]1
4602 YQ[178][197]([202](C$(I),(87[171]O%[172]10),4))
4604 YA[178][197]([202](C$(I),(91[171]O%[172]10),6))
4610 YQ[178]YQ[170]MQ:YA[178]YA[170]MA:NM$[178][200](C$(I),20):[141]4618:[137]4825
4618 D0[178]MQ:F$[178]"0":LN%[178]6:[141]50
4620 [141]800
4625 MQ$[178]O$
4630 D0[178]MA:F$[178]"2":LN%[178]6:[141]50
4640 [141]810
4645 MA$[178]O$
4710 D0[178]YQ:F$[178]"0":LN%[178]6:[141]50
4720 [141]800
4725 YQ$[178]O$
4730 D0[178]YA:F$[178]"2":LN%[178]6:[141]50
4740 [141]810
4745 YA$[178]O$
4800 [152]4," "[170]NM$;
4810 [152]4," "[170]MQ$[170]MA$;
4820 [152]4," "[170]YQ$[170]YA$:[142]
4825 T1[178]T1[170]MQ:T2[178]T2[170]MA:T3[178]T3[170]YQ:T4[178]T4[170]YA
4830 [139] H6[178]0[167]4160
4840 [137]4130
10000 HH$[178]"YOUR NAME HERE ":U$[178]"SHELF":U[178]150:U2[178]0
10010 [134]C$(U[170]1)
10012 BL$[178]" "
10013 BL$[178]BL$[170]BL$[170]BL$[170]BL$[170]BL$
10015 BS$[178]" ":BS$[178]BS$[170]BS$[170]BS$
10020 [141]13
10025 [139]U2[178]1[167]10060
10030 R[178]9:[141]40:[153]" CREATE A NEW FILE (Y OR N) ?"
10040 C[178]37:LN%[178]1:[141]100:[139]DA$[178]"Y" [167] RC[178]1:[137]10400
10050 [139]DA$[179][177]"N"[167]10040
10060 [141]11000:[137]1000
10070 [159]8,8,8,"0:POST/SALES,S,R":[141]7
10080 RC[178][197]([200](ZL$,3))
10090 YR$[178][202](ZL$,4,2)
10100 MO$[178][202](ZL$,6,2)
10110 [129]I[178]1[164]RC:[141]7:C$(I)[178]ZL$:[130]:[160]8:[137]1000
10200 [143]
10400 [143] CREATE DUMMY
10410 C$(1)[178]"ZZZZZZZZZZZZZZZZZZZZZ "
10440 C$(1)[178]C$(1)[170]"0000"[170]BL$
10450 [137]1000
11000 [143] STRING THING
11005 Q$[178]"POST/SALES,S,R"
11010 [129]J[178]896[164]933:[135]X:[151]J,X:[130]J
11020 [159]1,8,3,"0:"[170]Q$:[158]896:RC[178][197]([200](A$,3))
11025 YR$[178][202](A$,4,2):MO$[178][202](A$,6,2)
11030 [129]J[178]1[164]RC:[158]896:C$(J)[178][200](A$,96):[130]J:[160]1:[142]
12000 C9[178]C:C[178]0:[129]R[178]4[164]9:[141]40:[153][200](BL$,39):[130]:C[178]C9:[142]
19999 [128]